﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SMTC.Dao.Employee;
using SMTC.Model.TestCore;
using SMTC.BO.Common;
using SMTC.Model.Model;

namespace SMTC.BO.Employee
{
  public   class EmployeeQueryServices
    {
      private EmployeeQueryDao _employeequerydao = new EmployeeQueryDao();
      public List<EmpInfo> SelectAllEmployeeGridViewBind()
      {
          return _employeequerydao.SelectAllEmployeeGridViewBind();
      }
      public List<EmpInfo> Employee_For_Role_GridViewBind(string RoleID)
      {
          return _employeequerydao.Employee_For_Role( RoleID);
      }
      public List<EmpInfo> ForSelectAllEmployeeGridViewBind(string EMPNbr, string Name)
      {
          EMPNbr= DbValueProccess.StrProccess(EMPNbr);
          Name = DbValueProccess.StrProccess(Name);
          return _employeequerydao.ForSelectAllEmployeeGridViewBind(EMPNbr,Name);
      }
      public bool ExistEmployee(string EMPNb)
      {
          return _employeequerydao.ExistEmployee(EMPNb);
      
      }
     
    }
}
